<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
                                                                							                                                                <div class="form-group">	
								<label class="col-sm-3 control-label">投诉时间：</label>
								<div class="col-sm-8">
									<input id="complaintDate" name="complaintDate" class="form-control" type="text">
								</div>
							</div>
														                                                                <div class="form-group">	
								<label class="col-sm-3 control-label">产品：</label>
								<div class="col-sm-8">
									<select id="productId" name="productId" class="form-control">

									</select>
								</div>
							</div>
														                                                                <div class="form-group">	
								<label class="col-sm-3 control-label">批次：</label>
								<div class="col-sm-8">
									<input id="productNo" name="productNo" class="form-control" type="text">
								</div>
							</div>
														                                                                <div class="form-group">	
								<label class="col-sm-3 control-label">原因：</label>
								<div class="col-sm-8">
									<div id="reasonDiv" name="reasonDiv">

									</div>
									<input id="reason" name="reason" class="form-control" type="hidden">
								</div>
							</div>
														                                                                <!--<div class="form-group">	-->
								<!--<label class="col-sm-3 control-label">：</label>-->
								<!--<div class="col-sm-8">-->
									<!--<input id="createBy" name="createBy" class="form-control" type="text">-->
								<!--</div>-->
							<!--</div>-->
														                                                                <!--<div class="form-group">	-->
								<!--<label class="col-sm-3 control-label">：</label>-->
								<!--<div class="col-sm-8">-->
									<!--<input id="createDate" name="createDate" class="form-control" type="text">-->
								<!--</div>-->
							<!--</div>-->
														                                                                <!--<div class="form-group">	-->
								<!--<label class="col-sm-3 control-label">：</label>-->
								<!--<div class="col-sm-8">-->
									<!--<input id="state" name="state" class="form-control" type="text">-->
								<!--</div>-->
							<!--</div>-->
																					<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript">
        var E = window.wangEditor
        var reasonDiv = new E('#reasonDiv')
        reasonDiv.customConfig.menus = [
            'head',  // 标题
            'bold',  // 粗体
            'fontSize',  // 字号
            'fontName',  // 字体
            'italic',  // 斜体
            'underline',  // 下划线
            'strikeThrough',  // 删除线
            'foreColor',  // 文字颜色
            'backColor',  // 背景颜色
            'link',  // 插入链接
            'list',  // 列表
            'justify',  // 对齐方式
//            'quote',  // 引用
            'image',  // 插入图片
            'table',  // 表格
        ]
        reasonDiv.customConfig.uploadImgServer = getProjectName()+'/common/sysFile/uploadOss'
        reasonDiv.create()
        function setReason() {
            var log = reasonDiv.txt.html()
            $("#reason").val(log)
        }

        laydate.render({
            elem: '#complaintDate', //指定元素
            type: 'datetime'
        });
	</script>
	<script type="text/javascript" th:src="@{/js/appjs/product/complaint/add.js}" src="/js/appjs/product/complaint/add.js">
	</script>
</body>
</html>
